{include file="public/head"/}
  
  <body>
    <div class="x-body">
        <form class="layui-form" action="{:url('gateAdd')}" method="post" enctype="multipart/form-data">
            <div class="layui-form-item">
                <label for="L_email" class="layui-form-label">
                    <span class="x-red">*</span>所属小区
                </label>
                <div class="layui-input-inline" style="text-align: left; width:300px;">
                    <select id="community_id" name="community_id">
                        <option value="" selected="true">请选择小区</option>
                        {foreach $communitylist as $comm}
                        <option value="{$comm.id}">{$comm.name}</option>
                        {/foreach}
                    </select>
                </div>
            </div>


            <div class="layui-form-item">
                <label for="gateName" class="layui-form-label">
                    <span class="x-red">*</span>岗亭名称:
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="gateName" name="gateName" required="" lay-verify="required"
                    autocomplete="off" class="layui-input"  style="width: 300px;">
                </div>
            </div>



            <div class="layui-form-item">
                <label for="L_repass" class="layui-form-label">
                </label>
                <button  class="layui-btn" lay-filter="add" lay-submit="">
                    添加
                </button>
            </div>
        </form>
    </div>
    
    </body>
</html>